package cn.ytxy.double_system_data_visualization_demo.user.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
public class UserLoginParam {
    @ApiModelProperty(value = "用户名")
    @Pattern(regexp = "^[a-zA-Z0-9]{6,20}$", message = "用户名只能是6-20位字母或数字")
    private String username;
    @ApiModelProperty(value = "密码")
    @Pattern(regexp = "^[a-zA-Z0-9]{6,20}$", message = "密码只能是6-20位字母或数字")
    private String password;
}
